package com.duowei.diandan.bean.food;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.duowei.diandan.BR;
import com.duowei.diandan.db.entry.Dmpzsd;

import java.io.Serializable;

public class Taste extends BaseObservable implements Serializable {
    private Dmpzsd dmpzsd;

    private boolean checked;

    public Taste(Dmpzsd dmpzsd) {
        this.dmpzsd = dmpzsd;
        checked = false;
    }

    public Dmpzsd getDmpzsd() {
        return dmpzsd;
    }

    public void setDmpzsd(Dmpzsd dmpzsd) {
        this.dmpzsd = dmpzsd;
    }

    @Bindable
    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
        notifyPropertyChanged(BR.checked);
    }
}
